<?php
namespace app\admin\validate;


use think\Validate;

class EditUser extends Validate
{
    protected $rule = [
        'username'  =>  'chsDash',
        'password'  =>  'length:4,25',
        'email'     =>  'email',
        'mobile'    =>  'mobile',
        '__token__' =>  'token',
    ];

    protected $message = [
        'username.chsDash'  =>  '用户名格式错误',
        'password.length'   =>  '密码长度不符, 4-25个字符',
        'email.email'       =>  '邮箱格式错误',
        'mobile.mobile'     =>  '手机号无效'
    ];
}